/**************************************
 *
 * VLOOK 模板主题
 *
 * powered by MAX°孟兆
 *
 * QQ Group: 805502564
 * email: maxchow@qq.com
 *
 *************************************/

@import "../font";
@import "../color";

// 指定字体主题
.applyFontStyle(sans);
// 指定主题配套的圆角
.applyThemeRadius(small);

// 主题信息
@themeName: "vlook-x-tesla";
@themeDesc: "Tesla";
@themeLogoLight: "";
@themeLogoDark: @themeLogoLight;

// 主题主色
@theme1: #1D1D1F;
@theme2: #CC0100;
@theme3: #FFFFFF;
@theme1Dark: darken(@theme1, 20%);
@theme1Alt: lighten(@theme1, 60%);
@theme1AltDark: @codeBgColorDark;
@theme2Dark: darken(@theme2, 20%);
@theme2Alt: lighten(@theme2, 40%);
@theme2AltDark: darken(@theme2Alt, 20%);
// @theme3Dark: darken(@theme3, 20%);
// @theme3Alt: lighten(@theme3, 40%);
// @theme3AltDark: darken(@theme3Alt, 20%);

@themeForeColor: @theme3;
@themeForeColorFade: fade(@themeForeColor, 50%);
@themeBgColor: @theme1;
@themeBgColorFade: fade(@aLineColor, 50%);
@themeBgColorDark: darken(@themeBgColor, 20%);
@themeBgColorAlt: lighten(@themeBgColor, 42%);

// 标题色
@headerColor: @aLineColor;
@headerColorDark: darken(desaturate(@aLineColor, 10%), 10%);
// @tocHeaderNumColor: @docTextColorLightFade;
@contentHeaderNumColor: @themeBgColorFade;
@headerBackground: linear-gradient(0deg, var(--header-bg-start-color), var(--header-bg-end-color));
@multiHeaderBG: none;
@headerTextAlign: left;
@headerPadding: 10px;
@headerLetterSpacing: 0;
@h1Shadown: none;
@h2Shadown: none;
@h3Shadown: none;
@h4Shadown: none;
@h5Shadown: none;
@h6Shadown: none;
@h1BorderLeft: 0;
@h2BorderLeft: 0;
@h3BorderLeft: 0;
@h4BorderLeft: 0;
@h5BorderLeft: 0;
@h6BorderLeft: 0;
@h1BorderRight: 0;
@h2BorderRight: 0;
@h3BorderRight: 0;
@h4BorderRight: 0;
@h5BorderRight: 0;
@h6BorderRight: 0;
@h1BorderTop: 9px solid var(--header-box-shadow);
@h2BorderTop: 7px solid var(--header-box-shadow);
@h3BorderTop: 5px solid var(--header-box-shadow);
@h4BorderTop: 3px solid var(--header-box-shadow);
@h5BorderTop: 1px solid var(--header-box-shadow);
@h6BorderTop: 0;

// 行内代码背景色
@codeBgColor: lighten(@aLineColor, 55%);;
@codeBgColorDark: darken(@aLineColor, 25%);

// 按钮色
@buttonForeColor: @theme3;
@buttonForeHoverColor: @theme3;
@buttonBgColor: @theme1;

// 加粗文字颜色
// @boldColorLight: @docTextColorLight;//#202224;
// @boldColorDark: @docTextColorDark;

// 链接颜色
@aBorderWidth: 1px;
@aColor: @headerColor;
@aColorDark: @headerColorDark;
@aLineColor: @theme2;
@aHoverColor: @aLineColor;
@aActiveColor: desaturate(@aLineColor, 30%);

// 选中内容的背景色
@selectionColor: @aLineColor;//fade(@aLineColor, 50%);

// 表格十字光标颜色
@tableCrossBgColor: fade(@aLineColor, 50%);

// 封面、封底文字位置及对齐方式
@coverTextAlign: center;
@coverTextPadding: 450px 60px 50px;
@coverTextColor: @themeForeColor;
@coverSubColor: #A0A0B0;
@coverSupColor: @coverSubColor;
@coverAuthorColor: @coverSubColor;
@coverOwnerColor: @coverSubColor;

@backCoverTextAlign: center;
@backCoverTextPadding: 460px 60px 50px;
@backCoverTextColor: @themeForeColor;

// 对比度边框色，用于主题色与背景色对比度比较低时的边缘视觉识别
@contrastBorder: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
@contrastBorderForCover: 0 0 0 2px rgba(255, 255, 255, 0.15) inset;

// 封面背景设置
@coverBackgroundColor: @themeBgColor;
@coverBackgroundImage: url(@coverLogo), url(@coverTop);
@coverBackgroundSize: auto;
@coverBackgroundRepeat: no-repeat, no-repeat;
@coverBackgroundPosition: top center, top center;
// 封底背景设置
@backCoverBackgroundColor: @coverBackgroundColor;
@backCoverBackgroundImage: @coverBackgroundImage;
@backCoverBackgroundSize: @coverBackgroundSize;
@backCoverBackgroundRepeat: @coverBackgroundRepeat;
@backCoverBackgroundPosition: @coverBackgroundPosition;

// 封面、封底素材资源
@coverLogo: "";
@coverTop: "";

@import "../base";
